package com.abpa.util.unidata;


/**
 *
 * @author msowders
 */
public interface Command {
    enum Type { LIST, LISTDICT, WRITE, WRITEDICT, DELETE, DELETEDICT }
    /**
     *
     * @return
     */
    String getCommand();
    /**
     *
     * @return
     */
    String getResponse();
    /**
     *
     * @param command
     */
    void setCommand(String command);
    /**
     * 
     * @param session
     */
    void execute(Session session) throws DataAccessException;

    void setType(Type type);
    void setFile(String filename);
    void write(String fieldname, String data);
}
